<?php
$this->title = "Review Order";
$this->headTitle($this->title);

?>
<h1><a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'index'), null, true); ?>">Home</a> > <?php echo $this->escape($this->title); ?></h1>
<div class="gap"></div>

<!-- class buttons should be here. Do not use db variable for this button. Use session variable from controller. -->
<div class="gap10"></div>
Order No : <?php echo $this->orders->order_no; ?> <br />
Order Date : <?php echo $this->orders->order_date; ?><br />
Staff Number : <?php echo $this->orders->staff_no;?><br />
Staff Name : <?php echo $this->staffs->staff_name; ?><br />
Customer Number: <?php echo $this->orders->cust_no; ?> <br />
Customer Name: <?php echo $this->customers->cust_title?>. <?php echo $this->customers->cust_first_name?> <?php echo $this->customers->cust_last_name?><br />
Customer Address:<?php echo $this->customers->cust_address?> <br />
<br/>
<table>
<tr>
	<th>Product ID</th>    
	<th>Product Name</th>	
	<th>Item Status</th>	
	<th>Price</th>			
	<th>Qty</th>			
	<th>Total Price</th>	
</tr>
<?php foreach($this->dbs as $db) : ?>
<tr>
	<td><?php echo $this->escape($db->prod_no); ?></td>
	<td><?php echo $this->escape($db->prod_name)?></td>
	<td><?php echo $this->escape($db->item_status); ?></td>
	<td>$<?php echo $this->escape($db->prod_price)?></td>
	<td><?php echo $this->escape($db->item_qty); ?></td>
	<td>$<?php echo $this->escape($db->item_total_price);?></td>
</tr>
<?php endforeach;?>
</table>

<br/>
<br />

Total Price : <?php echo $this->orders->order_price;?><br /><br/>
<a href = "<?php echo $this->url(array('controller'=>'order', 'action'=>'cart'))?>">Back</a> <a href = "<?php echo $this->url(array('controller'=>'order', 'action'=>'cart', 'conf'=>'yes'))?>">Confirm</a>
<p><a href = "<?php echo $this->url(array('controller'=>'order', 'action'=>'delete'))?>">Cancel</a></p>
